SftTree/OCX 7.0

SftTreeItem.PrevSibling Property

Softel vdm, Inc.

Returns the item's previous sibling.

Syntax       

Get

VB.NET

ItemIndex = object.PrevSibling  As Integer

VB

ItemIndex = object.PrevSibling  As Long

C#.NET

int ItemIndex = object.PrevSibling;

VC++

long ItemIndex = object->PrevSibling;
long ItemIndex = object->GetPrevSibling();

C

HRESULT object->get_PrevSibling(long* ItemIndex);

Delphi

ItemIndex := object.PrevSibling   : Integer;

object

A SftTreeItem object.

ItemIndex

Returns the item's next sibling.  -1 is returned if the item doesn't have a previous sibling.

Comments

The PrevSibling property returns the item's previous sibling.

The previous sibling of the item is found by scanning towards the beginning of the tree control and locating an item on the same level (Item.Level property) as the item without encountering a parent item.

The Item.NextSibling property can be used to retrieve an item's next sibling.  The Item.FirstSibling and Item.LastSibling properties can be used to retrieve an item's first or last sibling.

See Also  SftTreeItem Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com